import request from '@/utils/request'


export function getProductList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/fund/admin/product/getList',
    method: 'post',
    data: query
  })
}   
export function getProductReportList(query){
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/fund/admin/product/getReportList',
    method: 'post',
    data: query
  })
}

export function saveProduct(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/fund/admin/product/save',
    method: 'post',
    data: query
  })
}   


export function copyProduct(query) {
  return request({
    url: '/fund/admin/product/copy',
    method: 'post',
    data: query
  })
}   
export function getProductDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/fund/admin/product/getDetail',
    method: 'post',
    data: query
  })
}


export function removeProduct(query) {
  return request({
    url: '/fund/admin/product/remove',
    method: 'post',
    data: query
  })
}   